package com.xrj4j.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xrj4j.common.ResponseResult;
import com.xrj4j.entity.Sponsor;

import java.math.BigDecimal;
import java.security.NoSuchAlgorithmException;


/**
 *  打赏服务类
 */
public interface SponsorService extends IService<Sponsor> {


    /**
     * 创建订单
     */
    ResponseResult createOrder(BigDecimal price, int payType) throws NoSuchAlgorithmException;

    /**
     * 用户支付成功后的回调地址
     */
    String callBack(String orderId, Double price, Double reallyPrice);

    /**
     * 打赏订单列表
     */
    ResponseResult selectSponsorList();
}
